﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GsifWeb4.Models;

namespace GsifWeb4.ViewModels
{
    public class CalenderViewModel
    {
        public List<DateTime> ActiveDates { get; private set; }
        public List<CalenderInfo> ActivitesOnDate { get; set; }
        public DateTime SelectedDate { get; set; }
        public laget_gsif LoggedInPlayer { get; private set; }

        public CalenderViewModel(gsifdbEntities gsifDB, string userName)
        {
            ActiveDates = CalenderHelper.GetAllCalenderDates();
            LoggedInPlayer = Common.GetPlayerFromUserName(gsifDB, userName);
        }

        
    }

    public class CalenderInfo
    {
        public string Team { get; set; }
        public string Time { get; set; }
        public string Place { get; set; }
    }


    
}